package com.xjve.service;

import com.xjve.pojo.SysUser;
import com.xjve.repository.StudentRepository;
import com.xjve.repository.SysUserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@RequiredArgsConstructor
public class TestService {

    private final SysUserRepository sysUserRepository;
    private final StudentRepository studentRepository;


    @Transactional
    public List<SysUser> getName(){
        return sysUserRepository.findAll();
    }


}
